package com.swc.consumer.client;

import com.swc.consumer.pojo.User;
import org.springframework.stereotype.Component;

/**
 * @author songwc
 * @date 2020/5/31 15:32
 */
@Component
public class UserClientFallback implements UserClient {

    @Override
    public User queryUserById(Long id) {
        User user = new User();
        user.setUserName("未知用户");
        return user;
    }
}
